package map;

import java.util.HashMap;
import java.util.Map;

public class MapDemo1 {
    public static void main(String[] args) {
        Map<String,Integer>map = new HashMap<>();
        map.put("语文",60);
        map.put("英语",65);
        map.put("数学",100);
        map.put("化学",95);
        map.put("物理",98);
        System.out.println(map);
        Integer value = map.put("语文",55);
        System.out.println(value);
        System.out.println(map);
        value = map.put("生物",80);
        System.out.println(value);
        System.out.println(map);

    }
}
